package com.appkubes.fintech.restful.application.rent.dao;

import com.appkubes.fintech.core.pojo.FintechRentOrderMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

/**
 * @Author: Rongjie
 * @Date: 2020/1/5 13:59
 * @Description:
 */
@Repository
public interface RentOrderDao extends FintechRentOrderMapper {


    @Update("UPDATE mall_order SET mall_order.`status` = #{status},mall_order.`update_time`=#{updateTime},mall_order.`confirm_time`=#{confirmTime} WHERE mall_order.`order_key`= #{orderKey}")
    Integer updateMallOrder(@Param("orderKey")String orderKey,@Param("status")String status,@Param("updateTime")int updateTime,@Param("confirmTime")int confirmTime);


}
